import javax.swing.*;
import java.io.IOException;
import java.net.Socket;

/**
 * @author Pribytkoysky Alexey
 */
public class StartClientGui {
	private static Socket socket = null;

	public static void main(String[] args) {
		try {
			socket = new Socket("localhost", 4444);
		} catch (IOException e) {
			e.printStackTrace();
		}

		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				Frame frame = new Frame(new TestManager(socket));
				frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				frame.setSize(500, 350);
				frame.setVisible(true);
			}
		});
	}
}



//		tm.selectTest(String.valueOf(comboBox1.getSelectedIndex()));
//		tm.setMode(2);
//		textPane1.setText(tm.getQuestion());
//		comboBox1.setEnabled(false);
//		button1.setEnabled(true);